package routers

import (
	"CMETO/controllers/dictController"
	middleware "CMETO/middlewares"

	"github.com/gin-gonic/gin"
)

func DictApi(r *gin.RouterGroup) {
	var dict dictController.Dictcontroller
	dictRouter := r.Group("/dict", middleware.JWTAuthPlus())
	{
		dictRouter.GET("/", dict.QueryDicts)
		dictRouter.POST("/", dict.AddDict)
		dictRouter.PUT("/", dict.UpdateDict)
		dictRouter.DELETE("/", dict.DeleteDict)
	}
}
